<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shops', function (Blueprint $table) {
            $table->increments('id');
            $table->boolean('genre')->default(0)->comment('类型 1:直营 2:连锁 3:加盟');
            $table->string('name', 32)->default('')->comment('名称');
            $table->string('tel', 16)->default('')->comment('电话');
            $table->string('cover', 32)->default('')->comment('照片');
            $table->string('charter', 32)->default('')->comment('营业执照');
            $table->unsignedMediumInteger('area_id')->default(0)->comment('区域ID');
			$table->string('street')->default('')->comment('地址');
			$table->unsignedMediumInteger('actor_id')->default(0)->comment('操作人ID');
			$table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shops');
    }
}
